package com.toycloud.business.dto.results;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

@Data
public class CascaderLabelTree {

//    private List<Label1> labelList = new ArrayList<>();
//
//    @Accessors(chain = true)
//    @Data
//    public static class Label1{
//        private String  label;
//        private String  value;
//        private List<Label2> children = new ArrayList<>();
//    }
//
//    @Accessors(chain = true)
//    @Data
//    public static class Label2{
//        private String label;
//        private String  value;
//        private List<ThreeLabel> children = new ArrayList<>();
//    }
//
//    @Accessors(chain = true)
//    @Data
//    public static class ThreeLabel{
//        private String label;
//        private Integer value;
//    }

    private String label;
    private String value;
    private String key;
    private int pid;
    private String type;
    // 子节点集合
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List<CascaderLabelTree> children;
}
